package jnpf.service;

import jnpf.entity.utils.IdUtils;
import jnpf.mapper.AddMapper;
import jnpf.model.meeting.dto.MeetingAddDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AddService {

    @Autowired
    private AddMapper addMapper;

    public boolean addMeeting(MeetingAddDTO meetingAddDTO) {
        meetingAddDTO.setId(IdUtils.getUUID());
        int result = addMapper.addMeeting((meetingAddDTO));
        boolean flag = false;
        if (result == 1) {
            flag = true;
        }
        return flag;
    }
}
